public abstract class Geometry {
    public abstract double getArea();
    public abstract double getPerimeter();

}

class Square extends Geometry{


    @Override
    public double getArea() {
        return 16.0;
    }

    @Override
    public double getPerimeter() {
        return 16.0;
    }
}